import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Live from '@/views/Live'
import Subs from '@/views/Subs'
import Course from '@/views/Course'
import Me from '../views/Me.vue'
// 以下是我的页面的组件
import FAQ from '../views/mecomponent/FAQ.vue'
import Feedback from '../views/mecomponent/Feedback.vue'
import Invite from '../views/mecomponent/Invite.vue'
import Openclass from '../views/mecomponent/Openclass.vue'
import Ranking from '../views/mecomponent/Ranking.vue'
import Receive from '../views/mecomponent/Receive.vue'
import Set from '../views/mecomponent/Set.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {

    path: '/Live',
    component: Live,
  },
  {
    path: '/Subs',
    component: Subs,
  },
  {
    path: '/Course',
    component: Course,
  },
  {
    path: '/Me',
    component: Me,
  },
  // 我的页面的组件
  {
    path: '/FAQ',
    component: FAQ
  },
  {
    path: '/Feedback',
    component: Feedback
  },
  {
    path: '/Invite',
    component: Invite
  },
  {
    path: '/Openclass',
    component: Openclass
  },
  {
    path: '/Ranking',
    component: Ranking
  },
  {
    path: '/Receive',
    component: Receive
  },
  {
    path: '/Set',
    component: Set
  }
]

const router = new VueRouter({
  routes
})

export default router
